<?php
class MobilePlusAction extends BaseAction {
    public $group, $ac, $mod,$plusid,$plus;
    public $mid,$member,$mpaccount;

    function initMember($mid = 0)
    {
    	if ($mid == 0) return;
    	$Member = M('Member');
    	$member = $Member->find($mid);
    	$this->mid = $member['id'];
    	$this->member = $member;
		$this->assign('member',$this->member);
    }

    function initMpaccount($mid = 0)
    {
    	if ($mid == 0) return;
    	$Mpaccount = M('Mpaccount');
    	$map['mid'] = $mid;
    	$mpaccount = $Mpaccount->where($map)->find();
    	$this->mpaccount = $mpaccount;
		$this->assign('mpaccount',$this->mpaccount);
    }

    function initPlus($plusid = 0){
        $Plus = M('Plus');
        $this->plus = $Plus->find($plusid);
    }
}